package com.jt.www.enums.remote;

/**
 * @author admin_ltf
 * @create 2019-05-09 18:45
 */
public enum ChannelEnum {


//    渠道编码,pvt-私保,tour-旅游,edu-教育,med-卫生,sequip-特设,safety-安保

    PVT("pvt", "私保"),
    TOUR("tour", "旅游"),
    EDU("edu", "教育"),
    MED("med", "卫生"),
    SEQUIP("sequip", "特设"),
    SAFETY("safety", "安保");


    private String channelCode;

    private String channelName;

    ChannelEnum(String channelCode, String channelName) {
        this.channelCode = channelCode;
        this.channelName = channelName;
    }

    public static String getNameByCode(String channelCode) {
        for (ChannelEnum channelEnum : ChannelEnum.values()) {
            if (channelEnum.getChannelCode().equals(channelCode)) {
                return channelEnum.channelName;
            }
        }
        return "";
    }

    public String getChannelCode() {
        return channelCode;
    }

    public String getChannelName() {
        return channelName;
    }
}
